]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Remove version check from extensionAvailable()
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 6 Sep 2014 15:21:52 +0000 (17:21 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 6 Sep 2014 20:06:23 +0000 (22:06 +0200)
It is confusing to treat outdated extensions as if they didn't exist
in some places, but like any other extensions elsewhere. In particular
gnome-tweak-tool still allows to launch prefs for them while making
it clear to users that the extension will not work - opening the
list of installed extensions in that case is unexpected and confusing.
Just remove the version check for now, we will soon follow tweak-tool
and use it to disable the extension switch instead.

https://bugzilla.gnome.org/show_bug.cgi?id=736185

js/extensionPrefs/main.js

index 88e639acb515aba77d80e69d8f31d339fb9e7963..f56e5b6d4838bbdd51a7767c4972f5ef79fdb209 100644 (file)
@@ -59,14 +59,10 @@ const Application = new Lang.Class({
 
     _extensionAvailable: function(uuid) {
         let extension = ExtensionUtils.extensions[uuid];
-        let checkVersion = !this._settings.get_boolean('disable-extension-version-validation');
 
         if (!extension)
             return false;
 
-        if (checkVersion && ExtensionUtils.isOutOfDate(extension))
-            return false;
-
         if (!extension.dir.get_child('prefs.js').query_exists(null))
             return false;